package
{
	/**
	 *上海市城墙
	 *@author CrazyChen 
	 *2013-3-31
	 */	
	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.geom.Point;
	
	public class ShanghaiWall extends Sprite
	{
		[Embed(source="resource/pic/wall.png")]
		public static var wall:Class;
		
		public function ShanghaiWall()
		{
			super();
			this.mouseChildren = false;
			this.mouseEnabled = false;
			var bm:Bitmap = new wall();
			this.addChild(bm);
			bm.x = -bm.width/2;
			bm.y = -bm.height/2;
		}
		
		public function refreshView():void{
			if(TowerWarMap.instance.gradMap.line.length>0){
				var point:Point = TowerWarMap.instance.gradMap.line[TowerWarMap.instance.gradMap.line.length - 1];
				this.x = point.x-30;
				this.y = point.y-30;
			}
		}
	}
}